package com.xw.pojo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 小五
 * 读取配置的方式1:@Value直接可以在属性上添加即可@Value(key必须写全了)@value只能读取单个值批量配置读取：
 * @ConfigurationProperties(prefix="zwf.user")通用的前缓
 * 实体类
 * 属性名=最后一个key的值
 */

@Component
@ConfigurationProperties(prefix = "jdbc.user")
public class User {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<String> getGfs() {
        return gfs;
    }

    public void setGfs(List<String> gfs) {
        this.gfs = gfs;
    }

    private  String password;
    private List<String>  gfs;
}
